Pop Program - CustomDefinition
Elements
- ◆ Button: Program btn Save
- ◆ Text: Lbl Name
- ◆ Input: Inp Name
- Prevent "enter" key = true
- Initial content = Parent group's Name
- Change: Initial content = Parent group's Name - [Search for TourProgram]:count:formatted as 1024
- When: Pop Program's SttMode equals Copy
- ◆ Text: Program Lbl TripTime
- ◆ Input: Program Inp TripTime
- Placeholder = Ex. 15, 15:30
- Prevent "enter" key = true
- Initial content = Parent group's TripTime:format date(HH:MM)
- ◆ Text: Program Lbl ReturnTime
- ◆ Input: Program Inp ReturnTime
- Placeholder = Ex. 15, 15:30
- Prevent "enter" key = true
- Initial content = Parent group's ReturnTime:format date(HH:MM)
- ◆ Set Time Of Day: Program Std TripTime
- ◆ Set Time Of Day: Program Std ReturnTime
- ◆ TabFix: TabFix A
- Use custom order = true
- Tab orders = a1,a2,a3,a4,a5,a6,a7,a8,a9,g1,a10,a11,a12,a13,a14
- ▫ Comment: -It's best to use custom order and ID each element as 1, 2, 3, 4, ....
- ◆ Text: Program Txt Delete 👓
- ◆ Icon: Program Ico Close
- Icon = material outlined close
- ◆ Text: Program Txt Caption
- ◆ Text: Program Lbl Duration
- ◆ Input: Inp Duration
- Placeholder = Duration...
- Prevent "enter" key = true
- Content format = int_number
- Initial content = Parent group's Duration
- Has number range = true
- Minimum value = 1
- Maximum value = 30
- ◆ Text: Program Lbl Duration copy
- Text = Type
- ▫ Comment: -It's best to use custom order and ID each element as 1, 2, 3, 4, ....
- ◆ Dropdown: Drd Type
- Choice style = dynamic
- Default value = Parent group's Type
- Placeholder = Type...
- Dynamic type = OptProgramType
- ◆ Text: Lbl Pier
- ◆ Text: Program Lbl Capacity
- ◆ Input: Program Inp Capacity
- Prevent "enter" key = true
- Content format = int_number
- Initial content = Parent group's Capacity
- Has number range = true
- Minimum value = 1
- Maximum value = 10000
- ◆ Change: Text: Program Lbl Remarks
- ◆ Multiline input: Program Inp Remarks
- Initial content = Parent group's Remarks
- ◆ Popup: Pop Confirm Delete
- disp = default
- ◆ Text: Text Delete, are you sure
- Text = Delete, are you sure?
- ◆ Button: Btn Confirm Yes
- ◆ Button: Btn Confirm No
- ◆ Alert: Program Alrt
- Position at the top = true
- ◆ Alert: Programt Alrt Added
- Position at the top = true
- ◆ Dropdown: Dropdown C
- ◆ Group: Grp Rates
- Min height css = 319px
- ◆ Repeating group: Rpt Rates
- ◆ Icon: Ico Delete Rate
- Icon = material outlined remove_circle
- ◆ Text: Txt Rate
- Text = Current cell's Rate:formatted as 1,024
- ◆ Text: Txt Desc
- Text = Current cell's TourRateType description text - Current cell's RateType's Display
- ◆ Group: Group B
- Min height css = 40px
- ◆ Dropdown: Drp Std Rate
- Choice style = dynamic
- Placeholder = Rate Type...
- Dynamic type = TourRateType
- ◆ Input: Inp Rate
- Placeholder = Rate...
- Show thousands = true
- Prevent "enter" key = false
- Content format = int_number
- ◆ Change: Icon: Ico Add Rate
- Icon = material outlined add_circle
- ▫ Comment: Disabled if -The inputs are empty-Rate already exists in Program's GuestRateor
- ◆ Input: Inp Prefix
- ◆ Text: Lbl E
- ◆ Text: Lbl HG
- Text = Program Rates & Fees
- ◆ Checkbox: chk NoBoat
Workflow
- ◆ Program Ico Close is clicked - "is clicked"
- ◆ Program btn Save is clicked - "is clicked"
- ◆ Program Txt Delete is clicked - "is clicked"
- ◆ Btn Confirm Yes is clicked - "is clicked"
- ◆ Btn Confirm No is clicked - "is clicked"
- ◆ Program Txt Delete is clicked - "is clicked"
- When: [Search for TourTicket]:count > 0
- 1. Show alert Program Alrt - "Show alert"
- Change message = true
- Message = Program is currently in used
- ◆ Pop Program is opened - "is opened"
- 1. Set focus to Inp Name - "Set focus to"
- ◆ Ico Add Rate is clicked - "is clicked"
- When: Pop Program's SttMode equals Add
- 1. Trigger Evt Add Edit - "Trigger"
- 2. Show alert Programt Alrt Added - "Show alert"
- Change message = true
- Message = Program "Inp Name's value append " append has been added
- When: Pop Program's SttProgramExists is false
- 3. Create a new TourRate - "Create a new TourGuestRate..."
- 4. Reset relevant inputs. - "Reset relevant inputs"
- 5. Set custom state of Pop Program - "Now set the mode to edit"
- ◆ Ico Delete Rate is clicked - "is clicked"
- 1. Delete Current cell - "Delete"
- ◆ Ico Add Rate is clicked - "is clicked"
- When: Pop Program's SttMode equals Edit
- 1. Create a new TourRate - "Create a new TourGuestRate..."
- 2. Reset relevant inputs. - "Reset relevant inputs"
- ◆ Evt Add Edit - "Evt Add Edit"
- 1. Set custom state of Pop Program - "See if Program Already Exits"
- ▪ SttProgramExists = [Search for TourProgram]:count > 0
- 2. Show alert Program Alrt - "Show alert"
- Change message = true
- Message = Program already exits
- When: Pop Program's SttProgramExists is true
- 3. Terminate this workflow. - "Terminate this workflow"
- 4. Create a new TourProgram - "Create a new"
- 5. Display data in Pop Program's PreviousStep - "Set TourProgram if just added"
- 6. Make changes to Pop Program's TourProgram - "Make changes to"
Generated byBubble Documenter